/////precompiled////////
#include "precompiled.h"
////////////////////////


#include "prs_FrmColStyle.h"
using namespace prs;

// TRuleFrmColStyle ///////////////////////////////////////////////////////////

//
TRuleFrmColStyle::TRuleFrmColStyle(
  snt::text::TContext &Context,
  svl::TVariant &VParentNode,
  TRuleFrmStyleState &RStyleState
) 
:vParentNode(VParentNode)
,rStyleState(RStyleState)
{
  snt::TReturn         Return;
  snt::TFVoid          F;
  snt::text::TSequence T(Context);
  snt::text::TKeyword K(Context);
  prs::TFuncNewNodeIntoAttrOldChildren FNewNode;

  this->Name(GetClassName()).Local(vParentNode)
  | K.New("col") & FNewNode.New(VParentNode,TNodeFrmColStyle()) & T.New("(") & A.New()
  ;
  
  A.Name(GetClassName() + "[A]")
  | T.New("normal")   & F.New(this,&TRuleFrmColStyle::FNormal)   & rStyleState.New() & A.New()
  | T.New("selected") & F.New(this,&TRuleFrmColStyle::FSelected) & rStyleState.New() & A.New()
  | T.New("focused")  & F.New(this,&TRuleFrmColStyle::FFocused)  & rStyleState.New() & A.New()
  | T.New(")") & Return.New()
  ;

  //svl::TMessageModal(GetClassName() << "\r\n" << GetGraphInfo(""));
}
